/*
 * Point.cpp
 *
 *  Created on: Feb 15, 2011
 *      Author: johang
 */

#include "Point.h"

Point::Point(int rr,int gg, int bb, float xx, float yy, float zz)
{
	r = rr;
	g = gg;
	b = bb;
	x = xx;
	y = yy;
	z = zz;
	is_object = false;
	is_valid = true;
	response = 0;
	norm_x = norm_y = norm_z = 0;
distance_to_object = 9999999;
}

Point::Point(int rr,int gg, int bb, float xx, float yy, float zz,bool object)
{
	r = rr;
	g = gg;
	b = bb;
	x = xx;
	y = yy;
	z = zz;
	is_object = object;
	norm_x = norm_y = norm_z = 0;
	response = 0;
	is_valid = true;distance_to_object = 9999999;
}

Point::Point(int rgb, float xx, float yy, float zz)
{
r = (0xFF0000&rgb)>>16;
g = (0x00FF00&rgb)>>8;
b = (0x0000FF&rgb)>>0;
x = xx;
y = yy;
z = zz;
is_object = false;
response = 0;
norm_x = norm_y = norm_z = 0;
is_valid = true;distance_to_object = 9999999;
}

Point::Point(int rgb, float xx, float yy, float zz, bool object)
{
r = (0xFF0000&rgb)>>16;
g = (0x00FF00&rgb)>>8;
b = (0x0000FF&rgb)>>0;
x = xx;
y = yy;
z = zz;
is_object = object;
response = 0;
norm_x = norm_y = norm_z = 0;
is_valid = true;distance_to_object = 9999999;
}
Point::Point() {
	// TODO Auto-generated constructor stub
	is_object = false;
	is_valid = true;
	response = 0;distance_to_object = 9999999;

}

Point::~Point() {
	// TODO Auto-generated destructor stub
}

void Point::Print() {
	printf("----\n");
	printf("--x,y,z = %f,%f,%f\n",x,y,z);
	printf("--nx,ny,nz = %f,%f,%f\n",norm_x,norm_y,norm_z);
}
